package com.ch.demo.junit;

public class Demo {

    @Test(order = 1)
    public void test1(){
        System.out.println("test1");
    }

    @Test(order = 2)
    public void test2(){
        System.out.println("test2");
        new AssertionError("断言错误," +
                "预计结果是100，实际是 99");
    }

    @Test(order = 3)
    public void test3(){
        System.out.println("test3");
        int i = 1 / 0;
    }

    @Before(value = "before")
    public void before(){
        System.out.println("before");
    }

    @After(value = "after")
    public void after(){
        System.out.println("after");
    }
}
